package com.td.spring.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
//Serializable 如果没有指定接口,存放在redistribution当中，就会序列化失败
public class Student implements Serializable {
    private Integer id;
    private String name;    //姓名
    private Integer age;    //年龄
    private String dept;    //部门
}
